﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TekaMUD.Engine.IO;
using TekaMUD.Engine.Blocks;
using TekaMUD.Engine.Behaviour;

namespace TekaMUD.Engine.Commands
{
	public class PlayerCommands
	{
		public void Drink(Command c)
		{
			if (c.BoundArguments == null || c.BoundArguments.Length == 0)
			{
				Messenger.SendAgent(c.Player, "Drink from what?");
				return;
			}

			foreach (GameEntity ge in c.BoundArguments)
			{
				if (ge is IDrinkable)
				{
					c.Player.Health.Hydration = c.Player.Health.Hydration_Max;
					return;
				}
				else
				{
					Messenger.SendAgent(c.Player, "You cannot drink from that...");
					return;
				}
			}
		}
	}
}
